<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/css/base2.css">
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/css/style2.css">
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/jquery-2.1.4.min.js"></script>
<title>红包管理-添加红包</title>
</head>
<body>
	<div class="page">
		<div class="main_menu fl">
		<c:forEach items="${sessionScope.MENU_LIST}" var="mainMenu">
			<c:if test="${mainMenu.wOOpid == 21}">
				<div class="menu_name">
					<a href="${pageContext.request.contextPath}/${mainMenu.wOAction}"
						target="main"> <img
						src="${pageContext.request.contextPath}${mainMenu.wOIcon}">
						<p>${mainMenu.wOName}</p>
					</a>
				</div>
			</c:if>
		</c:forEach>
		</div>
		<div class="main_cont fl">
			<div class="main_cont_top">
				<div class="main_inner clearfix">

					<div class="cont_top_time fr">
						
					</div>
				</div>
			</div>
			<div class="main_cont_bottom">
				<div class="main_inner">
					<form action="${pageContext.request.contextPath}/coupon/edit.html"
						method="post" class="add_bacth">
						<input type="hidden" value="${COUPON_INFO.id}" name="id"/>
						<p>
							添加类型：<select class="w300" name="wCType"><option value="1">兑换红包</option>
								<option value="2">发放红包</option></select>
						</p>
						
						<p>
							红包标题：<input type="text" value="${COUPON_INFO.wCTitle}" name="wCTitle" class="w300">
						</p>
						<p>
							发行日期：<input class="Wdate w300" type="text" name="beginTime"
								onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" value="<fmt:formatDate
										value="${coupon.wCBeginTime }"
										pattern="yyyy-MM-dd HH:mm:ss" />">
						</p>
						<p>
							有效天数：<input type="text" value="${COUPON_INFO.wCDays}" name="wCDays" class="w200">天
						</p>
						<p>
							红包数量：<input type="text" value="${COUPON_INFO.wCPublishiCount}" name="wCPublishiCount" class="w200">个
						</p>
						<p>
							红包价值：<input type="text" value="${COUPON_INFO.wCMoney}" name="wCMoney" class="w200">元
						</p>
					
						<p>
							使用规则：
							<textarea name="wCDesc">${COUPON_INFO.wCDesc}</textarea>
						</p>
						<p class="add_bacth_btn">
							<a href="money_lb_duihuan.html"><input type="button"
								value="取消"></a><input type="submit" value="确认添加">
						</p>
					</form>
				</div>
			</div>
		</div>
	</div>
	</div>
	<script>
		$(".add_bacth .w80").click(function() {
			$(".add_bacth .w80").removeClass("on");
			$(this).addClass("on").siblings().removeClass("on");
		});
	</script>
</body>
</html>